package ysq.xyg.ticket.service;


import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.ticket.model.po.TicketRecord;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.ticket.model.vo.TicketRecordVo;

import java.util.List;

/**
 * 票卷模块-账单流水service接口
 *
 * @author shengQiang yu
 * @date 2019-10-30 10:23:02
 */
public interface TicketRecordService extends BaseService<TicketRecord> {
    /**
     * 分页查询
     *
     * @param ticketRecordVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-30 10:23:02
     */
    ReturnEntity page(TicketRecordVo ticketRecordVo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param ticketRecordVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-30 10:23:02
     */
    ReturnEntity addOrUpdate(TicketRecordVo ticketRecordVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-10-30 10:23:02
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param ticketRecordVo 对象
     * @return List<TicketRecord> TicketRecord集合
     * @author shengQiang yu
     * @date 2019-10-30 10:23:02
     */
    List<TicketRecord> acceptList(TicketRecordVo ticketRecordVo);
}
